//
//  IntroductionView.m
//  ITHome
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 YAX. All rights reserved.
//

#import "IntroductionView.h"

@implementation IntroductionView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // 用户名
        self.contentTextView = [[UITextView alloc] initWithFrame:CGRectMake(0, 10, kScreenWidth, 100)];
        self.contentTextView.font = [UIFont systemFontOfSize:15];
        //返回键的类型
        self.contentTextView.returnKeyType = UIReturnKeyDefault;
        //键盘类型
        self.contentTextView.keyboardType = UIKeyboardTypeDefault;
        
        //获得光标焦点
        [self.contentTextView becomeFirstResponder];
        
        // 加边框
        self.contentTextView.layer.backgroundColor = [[UIColor whiteColor] CGColor];
        
        self.contentTextView.layer.borderColor = [[UIColor blackColor]CGColor];
        
        self.contentTextView.layer.borderWidth = 0.5;
        
//        self.contentTextView.layer.cornerRadius = 8.0f;
        
        [self addSubview:_contentTextView];
        
        
        // 统计
        self.countLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenWidth - 60, _contentTextView.height + _contentTextView.y + 5, 50, 30)];
        self.countLabel.font = [UIFont systemFontOfSize:15];
        self.countLabel.textColor = [UIColor grayColor];
        self.countLabel.text = @"0/100";
        
        [self addSubview:_countLabel];
    }
    return self;
}



@end
